package com.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.pojo.SysRight;
import com.pojo.SysRoleRight;
import com.pojo.SysUser;
import com.pojo.Vo.SysUserVo;

import java.util.List;

public interface UserService extends IService<SysUser> {

     SysUserVo login(String usrName, String password);


     SysUserVo loginByName(String usrName);
//     SysUser getUserByUsrName(String usrName);

     IPage<SysUserVo> getPage(IPage<SysUserVo> page, SysUserVo sysUserVo);

     /**
      * 根据角色ID查询权限集合
      */
     List<SysRoleRight> getRightListByRoleId(long roleId);


     List<SysRight> getRightByRoleId(long roleId);
}
